//
//  Bundle+Extension.swift
//  007-反射机制
//
//  Created by v_xkangfan on 2017/5/25.
//  Copyright © 2017年 v_xkangfan. All rights reserved.
//

import Foundation

extension Bundle {
//    func nameSpace() -> String {
////      return  Bundle.main.infoDictionary?["CFBundleName"] as? String ?? ""
//        return  infoDictionary?["CFBundleName"] as? String ?? ""
//    }
    
    //计算型属性类似于函数，没有参数，有返回值
    var nameSpace1: String {
        return infoDictionary?["CFBundleName"] as? String ?? ""
    }
    
}
